import { ref } from 'vue'
export default function () {
  const scrollY = ref(0)
  window.addEventListener('scroll', () => {
    scrollY.value = window.scrollY.toFixed(0)
  })
  return { scrollY }
}
